package com.group_g.hkr;

import java.awt.CardLayout;

import javax.swing.JFrame;
import javax.swing.JPanel;

@SuppressWarnings("serial")
public class GUI extends JFrame {

	private static JPanel mainPanel = new JPanel();
	private Panel_UserAuthentication logInPanel = new Panel_UserAuthentication();
	private Panel_Shop shopPanel = new Panel_Shop();
	private static String userAuthen = "login";
	private static String shop = "shop";
	

	
	public GUI() {
		this.setTitle("Shopping Application v1.0");
		this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		this.setBounds(280, 30, 1000, 700);
		this.setResizable(false);
		this.setContentPane(mainPanel);
	}
	
	public void ini() {
		mainPanel.setBounds(280, 30, 900, 700);
		mainPanel.setLayout(new CardLayout(0, 0));
		mainPanel.add(userAuthen, logInPanel);
		mainPanel.add(shop, shopPanel);
	}

	
	public static String getUserAuthen() {
		return userAuthen;
	}

	public static JPanel getMainPanel() {
		return mainPanel;
	}

	public static String getShop() {
		return shop;
	}


}
